[paket]
tanim   = Solid 3D CAD modelleri
paketci = milisarge
grup    = geliştirme
url     = http://www.openscad.org

[gerek]
derleme = bison flex boost eigen cgal double-conversion harfbuzz opencsg qt5 qscintilla-qt5 libxml2 libzip imagemagick
calisma =

[kaynak]
1 = http://files.openscad.org/${isim}-${surum}.src.tar.gz
2 = https://github.com/openscad/openscad/commit/00a4692989c4e2f191525f73f24ad8727bacdf41.patch::$SRC/${isim}-CVE-2022-0496.patch
3 = https://github.com/openscad/openscad/commit/84addf3c1efbd51d8ff424b7da276400bbfa1a4b.patch::${isim}-CVE-2022-0497.patch
4 = https://github.com/openscad/openscad/commit/4c5d19c302d7d440d1c11c3d02b3ce5eb2e548da.patch::${isim}-undefine-boost-libintl.patch
5 = https://github.com/openscad/openscad/commit/9aa0d7e9f2914fe5f547bdde69202161d1c6064d.patch::${isim}-fix-cgal5.3.patch
6 = https://github.com/openscad/openscad/commit/c50837d597a17b5d4cd8c7ed8e09cb07edb98a6f.patch::${isim}-fix-boost-x32-x64.patch
7 = https://github.com/openscad/openscad/commit/abfebc651343909b534ef337aacc7604c99cf0ea.patch::${isim}-fix-cgal5.4.patch
8 = https://github.com/openscad/openscad/commit/08bf69b4115c989fc5671254e0d05735d01bcca5.patch::${isim}-fix-boost-join.patch

[sha256]
1       = d938c297e7e5f65dbab1461cac472fc60dfeaa4999ea2c19b31a4184f2d70359

[derle]
yama    = ${isim}-CVE-2022-0496.patch
yama    = ${isim}-CVE-2022-0497.patch
yama    = ${isim}-undefine-boost-libintl.patch
yama    = ${isim}-fix-cgal5.3.patch
yama    = ${isim}-fix-boost-x32-x64.patch
yama    = ${isim}-fix-cgal5.4.patch
yama    = ${isim}-fix-boost-join.patch
betik   = export M4=m4
betik   = sed -i "s|CGAL_VERSION_NR < 1050401000|CGAL_VERSION_NR < CGAL_VERSION_NUMBER(5, 4, 0)|" src/cgalutils-tess.cc
betik   = qmake-qt5 PREFIX="/usr" && make
betik   = convert +set date:create +set date:modify "icons/$isim.png" -resize 128x128\> "icons/$isim-128.png"

[pakur]
betik   = make INSTALL_ROOT="$PKG" install
betik   = rm -f "$PKG/usr/share/openscad/libraries/MCAD/"*.py
betik   = install -Dm644 "icons/$isim.desktop" "$PKG/usr/share/applications/$isim.desktop"
betik   = install -Dm644 "icons/$isim-128.png" "$PKG/usr/share/pixmaps/$isim.png"
betik   = install -Dm644 "icons/$isim.xml" "$PKG/usr/share/mime/packages/$isim.xml"
